package engine.systems.spatial
{
	import ash.core.Entity;
	
	import ash.core.Component;
	
	import flash.geom.Rectangle;
	
	import org.osflash.signals.Signal;
	
	public class Bounds extends Component
	{
		public var rect:Rectangle;
		
		public var useLeft:Boolean;
		public var useTop:Boolean;
		public var useRight:Boolean;
		public var useBottom:Boolean;
		
		public var onLeft:Signal 	= new Signal(Entity);
		public var onTop:Signal 	= new Signal(Entity);
		public var onRight:Signal 	= new Signal(Entity);
		public var onBottom:Signal 	= new Signal(Entity);
		
		public function Bounds(rect:Rectangle, useLeft:Boolean = true, useTop:Boolean = true, useRight:Boolean = true, useBottom:Boolean = true)
		{
			this.rect 		= rect;
			
			this.useLeft 	= useLeft;
			this.useTop 	= useTop;
			this.useRight 	= useRight;
			this.useBottom 	= useBottom;
		}
	}
}